package com.fit.components.security;

import org.apache.tapestry5.corelib.base.AbstractConditional;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.fit.services.Authenthicator;


public class Authenticated extends AbstractConditional {

	@Inject
	private Authenthicator authenticator;

	@Override
	protected boolean test() {
		return authenticator.isLoggedIn();
	}

}
